<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        /* div+p {
            color: red;
        } */
        
        div~p {
            color: darkmagenta
        }
    </style>
</head>

<body>
    <div>盒子</div>
    <p>段落1</p>
    <p>段落2</p>
    <p>段落3</p>
    <span>span盒子</span>
</body>

</html>